<?php
/* @var $model Profile */


$this->pageHeader = t('PAGE_TITLE_ADDNEW',  'profile');
$this->pageTitle = t('PAGE_TITLE','profile');
$logedInUser = User::model()->findByPk(Yii::app()->user->id);
$toolbar = new LGToolbar();
$toolbar->ButtonSave(t('BTN_SAVE','profile'), '#profile-form', ActionType::SAVE);
$toolbar->ButtonSave(t('BTN_SUBMIT','profile'), '#profile-form', ActionType::SUBMIT);
if($logedInUser->isAdmin() || $logedInUser->isSuperAdmin())
{
	$toolbar->ButtonSave(t('BTN_SAVE_AND_CREATE_ADVANCE', 'profile'), '#profile-form', ActionType::SAVE_CREATE_ADVANCE);
}
//$toolbar->ButtonSave(t('BTN_SAVE_AND_NEW', 'profile'), '#profile-form', ActionType::SAVE_NEW);
$toolbar->Cancel('btnCancel',t('BTN_CANCEL'));
$this->pageToolbar = $toolbar->mergeToolbar();
?>

<?php    
    $this->renderPartial('_form', array('model'=>$model));
?>
